package com.zero.guava.samples.EventBus;

import com.google.common.eventbus.EventBus;

public class InheritListenersEventBusExample {

    public static void main(String[] args) {

        final EventBus eventBus = new EventBus();
        eventBus.register(new ConcreteListener());

        System.out.println("post the string event.");
        eventBus.post("I am String event");

        System.out.println("post the int event.");
        eventBus.post("1000");
    }
}
